package com.tour.modules.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.tour.modules.web.dao.TInfoDao;
import com.tour.modules.web.entity.TInfoEntity;
import com.tour.modules.web.service.TInfoService;



@Service("tInfoService")
public class TInfoServiceImpl implements TInfoService {
	@Autowired
	private TInfoDao tInfoDao;
	
	@Override
	public TInfoEntity queryObject(Long id){
		return tInfoDao.queryObject(id);
	}
	
	@Override
	public List<TInfoEntity> queryList(Map<String, Object> map){
		return tInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(TInfoEntity tInfo){
		tInfoDao.save(tInfo);
	}
	
	@Override
	public void update(TInfoEntity tInfo){
		tInfoDao.update(tInfo);
	}
	
	@Override
	public void delete(Long id){
		tInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tInfoDao.deleteBatch(ids);
	}
	
}
